package com.itheima.feign.client;


import com.itheima.feign.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: TODO
 * @Author: Ad'min
 * @Date: 2024/7/22 17:05
 * @Version: 1.0
 **/
@FeignClient("userservice") //微服务的名称
//@FeignClient(value = "userservice",configuration = FeignConfig.class) //指定当前微服务使用哪个配置类
public interface UserClient {
    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);
}
